<%@ include file="/WEB-INF/views/taglib.jsp" %>
<spring:url var="banner" value="/resources/images/comfort/Logo_ComfortDelgro.png" />
<spring:url var="iconAdmin" value="/resources/images/iconAdmin.jpg" />
<spring:url var="iconLock" value="/resources/images/lock-icon.gif" />
<spring:url var="home" value="/indexView" />
  
<div class="header clearfix">       
        <!-- START FLOAT LEFT -->     
             <div class="CD_HeaderFloatLeft">
			    <font style="font-size:30px">E-Centre @ Redhill</font>
			  <br />
			  <h4 class="title"> Building Attendance Management System (BAMS) </h4>
			  </div>   
        <!-- START FLOAT RIGHT -->     
            <div class="CD_HeaderFloatRight">
            	<div class="CD_LoginSession">
            			<c:if test="${false}">
						<a title="Stock has been frozen"><img align="absmiddle" src="${iconLock}" width="21"></a>
						</c:if>
                    	<span><img align="absmiddle" src="${iconAdmin }"></span>&nbsp;&nbsp;
                    	<sec:authorize access="anonymous">
						
						<span class="Username">Anonymous</span> 
						</sec:authorize>
						<c:if test="${not empty currentSystemUser }">
						
						<span class="Username">
						${currentSystemUser.personName}
						<!-- <sec:authentication property="principal.username" /> -->
						<c:url value="/logout" var="logoutUrl"/>
						, <a href="${logoutUrl}">Log Out</a>
						</span>
						
						<br>
						<span class="smallHeading">
						<c:if test="${currentSystemUser.department!=null}">
						${currentSystemUser.department.departmentName}
						</c:if>
						</span>
	</c:if>         
   				 </div>  
         	</div>
            
    </div>